Skip to content

Align: out-layout-preset (inject ADR 0007 out/ defaults) - #1

Merged
cursor[bot] merged 5 commits into
mainfrom
cursor/out-layout-preset-ff9a
Aug 1, 2026
Merged

Align: out-layout-preset (inject ADR 0007 out/ defaults)#1
cursor[bot] merged 5 commits into
mainfrom
cursor/out-layout-preset-ff9a

Conversation

@guangzan

@guangzan guangzan commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Implement out-layout-preset: when output.distPath is unset, Role preset injects Conventional role outputs under out/{main,preload,renderer} at the application root (ADR 0007 / BUILD-001).

Changes

  • Runtime: applyConventionalDistPath in normalizeRuntime — absolute resolve(appRoot, 'out', role); explicit string / object-with-root preserved; object missing root gets injection while keeping siblings
  • Tests: tests/unit/electron-runtime.test.ts covers injection + overrides; plannedMainEntry lands under out/main/index.mjs for type:module
  • Docs: getting-started + migration (en/zh) teach out/<role> as the unset default; early-beta <roleRoot>/dist called out
  • Examples: vanilla/react package.json#main./out/main/index.mjs
  • Matrix: BUILD-001 evidence credits preset injection; zero-config-without-config still Partial/deferred

Rail artifacts

  • docs/monorail/out-layout-preset/align.md
  • docs/monorail/out-layout-preset/spec.md
  • Issues 01 / 02 marked done
  • Glossary: Conventional role outputs

Out of scope (per align)

Renderer assetPrefix, zero-config discovery, window-load helpers, packaging, default watch, implicit shared

Open in Web Open in Cursor 

cursoragent and others added 5 commits August 1, 2026 19:07
Record light-align decisions and clarify Conventional role outputs in the glossary so unset distPath stops falling back to roleRoot/dist.

Co-authored-by: Zane <guangzan1999@outlook.com>
Add spec.md and issues for normalizeRuntime distPath preset injection plus docs/examples alignment.

Co-authored-by: Zane <guangzan1999@outlook.com>
normalizeRuntime now presets out/<role> under the application root; unit tests cover injection and explicit overrides.

Co-authored-by: Zane <guangzan1999@outlook.com>
Update getting-started/migration, point example package.json#main at out/main, refresh BUILD-001 evidence, and assert docs-site copy.

Co-authored-by: Zane <guangzan1999@outlook.com>
Keep the approachable getting-started gate free of bare Role terminology.

Co-authored-by: Zane <guangzan1999@outlook.com>
@cursor
cursor Bot merged commit f16bd5f into main Aug 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants